package com.taoist_awei.blog.exception;


import com.taoist_awei.blog.core.HttpResult;

/**
 * @author 高威
 * ApiException为该项目的父异常, 用于处理全部的接口异常
 */
public class ApiException extends RuntimeException {
    private HttpResult result;

    protected ApiException() { }

    public ApiException(HttpResult result) {
        this.result = result;
    }

    public void setResult(HttpResult result) {
        this.result = result;
    }

    public HttpResult getResult() {
        return result;
    }
}
